package com.foreknow.demo5;

public class TestEmployee {
    public static void main(String[] args) {
        Employee e1 = new Employee();
        e1.setEid("1001");
        e1.setName("tom");
        e1.setDept("market");
        e1.setSalary(12345.67);

        Employee e2 = new Employee();
        e2.setEid("1002");
        e2.setName("tom2");
        e2.setDept("market2");
        e2.setSalary(22222.67);

        EmployeeManager manager = new EmployeeManager();
        manager.addEmployee(e1);
        manager.addEmployee(e2);
        Employee eee = manager.getQueryById("1002");
        System.out.println("查询到的员工的信息: "+eee.getEid()+"--"+eee.getName());
}
}
